function get_nowdate() {

    var a = new Date();

    var d = new Date();
    var e = d.setMonth().split(' ')[1];
    var c = d.setMonth(d.getMonth() + 1).split(' ')[1];

    return [
        a, c, e
    ]
}
// 防抖
function debounce(func, wait = 0) {
    if (typeof func !== 'function') {
        throw new TypeError('need a function arguments')
    }
    let timeid = null;
    let result;

    return function () {
        let context = this;
        let args = arguments;

        if (timeid) {
            clearTimeout(timeid);
        }
        timeid = setTimeout(function () {
            result = func.apply(context, args);
        }, wait);

        return result;
    }
}




export default {
    nowdate: get_nowdate,
    debounce

}

